import { IContentTable } from '@/components/page-content/index';

export const contentTableConfig: IContentTable = {
  tableTitle: '商品列表',
  propList: [
    { prop: 'id', label: 'id', minWidth: 60 },
    { prop: 'name', label: '标题', minWidth: 80 },
    { prop: 'imgUrl', label: '主图', minWidth: 80, slotName: 'image' },
    { prop: 'oldPrice', label: '旧价格', minWidth: 60, slotName: 'oldPrice' },
    { prop: 'newPrice', label: '新价格', minWidth: 60 },
    { prop: 'status', label: '状态', minWidth: 80, slotName: 'status' },
    {
      prop: 'createAt',
      label: '创建时间',
      minWidth: 160,
      slotName: 'createAt'
    },
    {
      prop: 'updateAt',
      label: '更新时间',
      minWidth: 160,
      slotName: 'updateAt'
    },
    { label: '操作', minWidth: 120, slotName: 'handler' }
  ],

  isShowSerialNumberColumn: true,
  isShowSelectColumn: true
};
